<m-api-data-table [dataSource]="data">
  <ng-container mDataTableColumn header="区域数量">
    <ng-template>
      <td>{{ areaCount }} </td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="软件别名">
    <ng-template let-name="name">
      <td>{{ name }} </td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="对应终端数">
    <ng-template let-total="total">
      <td>{{ total }} </td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="已更新终端数">
    <ng-template let-finish="finish">
      <td>{{ finish }} </td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="当前软件版本">
    <ng-template let-version="version">
      <td>{{ version }} </td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="软件更新状态">
    <ng-template let-finish="finish" let-total="total">
      <td>
        <a *ngIf="total==finish else need_upgrade">最新</a>
        <ng-template #need_upgrade>待更新</ng-template>
      </td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="软件更新时间">
    <ng-template let-updated_at="updated_at">
      <td>{{ updated_at | date}} </td>
    </ng-template>
  </ng-container>
</m-api-data-table>